 <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        我们的团队
        <small>Control panel</small>
      </h1>
      <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> 控制台</a></li>
        <li class="active">我们的团队</li>
      </ol>
    </section>



    <!-- Main content -->
    <section class="content">

      <div class="row">
        <div class="col-xs-12">
          <div class="box">
            <div class="box-header">
              <h3 class="box-title">Advertising  Table</h3>

              <div class="box-tools">
                <button type="button" class="btn btn-info pull-right" data-toggle="modal" data-target="#myModal">
                  添加人员
                </button>
              </div>
            </div>
            <!-- /.box-header -->
            <div class="box-body table-responsive no-padding">
              <form action="{:url('admin/team/delall')}" method="post">
              <table class="table table-hover">
                <tbody><tr>
                  <th class="text-center" width="100"><input type="checkbox" value="" id="checkall" class=""> 全选</th>
                  <th>ID</th>
                  <th>图片</th>
                  <th>姓名</th>
                  <th>简介</th>
                  <th style="width: 20%">操作</th>
                </tr>

                <?php foreach($team as $v): ?>
                <tr>
                  <td class="text-center"><input type="checkbox" value="<?php echo $v['t_id']; ?>" name="idarr[]" class="cbox"></td>
                  <td><?php echo $v['t_id'] ?></td>
                  <td><img src="<?php echo thumb($v['t_img'], 150, 200); ?>" alt=""></td>
                  <td><?php echo $v['t_name'] ?></td>
                  <td><?php echo $v['t_title'] ?></td>

                  <td>
                    <a href="{:url('admin/team/edit',['id' => $v['t_id'] ])}"><button type="button" class="btn btn-sm btn-primary glyphicon glyphicon-pencil">  修改</button></a>
                    <a href="{:url('admin/team/del',['id' => $v['t_id'] ])}"><button type="button" class="btn btn-sm btn-danger glyphicon glyphicon-trash">  删除</button></a>
                  </td>
                </tr>
                <?php endforeach; ?>


                </tbody></table>
                <div class="pull-left" style="margin: 20px;">
                  <button type="submit" class="btn btn-default btn-gradient pull-right delall"><span class="glyphicon
glyphicon-trash"></span></button>
                </div>
              </form>
            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
        </div>
      </div>


    </section>
    <!-- /.content -->
  </div>


 <!-- Modal -->
 <div class="modal fade bs-example-modal-lg" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
   <div class="modal-dialog modal-lg" role="document">
     <div class="modal-content">


       <div class="row">
         <div class="col-md-12">
           <!-- Horizontal Form -->

           <div class="box-header with-border">
             <h3 class="box-title">添加宠物品种</h3>
           </div>
           <!-- /.box-header -->
           <!-- form start -->
           <form action="{:url('admin/team/add')}" method="post"  enctype="multipart/form-data" class="form-horizontal">

             <div class="row text-center">
               <div class="col-lg-12" id="preview">
                 <img id="imghead" border="0" src="__ADMINMY__/photo_icon.png" width="150" height="150" onclick="$('#previewImg').click();">
                 <label for="" style="margin-right: 20px;">上传图片</label>
               </div>
               <input type="file" name="image" onchange="previewImage(this,300,250)" style="display: none;" id="previewImg">
             </div>

             <div class="box-body">
               <div class="form-group">
                 <label for="name" class="col-sm-2 control-label">名称</label>

                 <div class="col-sm-9">
                   <input type="text" class="form-control" name="t_name" id="name" >
                   <p id="b_link_mes"  style="color: red;line-height: 34px;font-size: 12px;margin: 0;padding: 0;height: 12px;"></p>
                 </div>
               </div>

               <div class="form-group">
                 <label for="t_title" class="col-sm-2 control-label">简介</label>

                 <div class="col-sm-9">
                   <input type="text" class="form-control" name="t_title" id="t_title" >
                   <p id="v_name_mes"  style="color: red;line-height: 34px;font-size: 12px;margin: 0;padding: 0;height: 12px;"></p>
                 </div>
               </div>




             </div>
             <!-- /.box-body -->
             <div class="box-footer">
               <div class="col-sm-2">
                 <button type="reset" class="btn btn-default">重置</button>
               </div>

               <div class="col-sm-9">
                 <button type="submit" class="btn btn-info pull-right">提交</button>
               </div>

             </div>
             <!-- /.box-footer -->
           </form>

           <!-- /.box -->
         </div>
         <!--/.col (right) -->
       </div>

     </div>
   </div>
 </div>

 <script>
     $("#name").blur(function(){
         if($(this).val()==0){
             $("#b_link_mes").html('*请填写简介');
             return false;
         }

     });
     $("#name").focus(function(){
         $("#b_link_mes").html('');
     });

     $("#t_title").blur(function(){
         if($(this).val()==0){
             $("#v_name_mes").html('*请填写作者');
             return false;
         }

     });
     $("#t_title").focus(function(){
         $("#v_name_mes").html('');
     });

 </script>